import {httpRequest} from '@/request/https'

export default {
  /**
   * 账号密码登录
   * */
  login: params => httpRequest({url: '/geta/login', method: 'post', params}),
  getUserInfo: params => httpRequest({url: '/userInfo', method: 'post', params}),
  getUserInfoMock: params => httpRequest({url: '/getUserInfo/mock', method: 'post', params}),
  logout: _ => httpRequest({url: `/gail/token/logout`, _})
}
